package com.superhelper.app.service.deliver;

import java.util.List;

import com.superhelper.common.domain.DadaReasons;
import com.superhelper.common.domain.TakeOutOrder;

public interface IDeliverService {

    /**
     * 立即发单
     * 
     * @param orderId
     * @param free
     * @param tip
     * @return
     */
    public boolean addTask(Long orderId);

    /**
     * 发单预订(定时任务发)
     * 
     * @param orderId
     * @param free
     * @param tip
     * @return
     */
    public boolean addBookTask(Long orderId);

    /**
     * 查询运费
     * 
     * @param orderId
     * @return
     */
    public TakeOutOrder queryDeliverFee(Long orderId);

    /**
     * 增加小费
     * 
     * @param orderId
     * @param tip
     * @return
     */
    public boolean addTips(Long orderId, Double tip) throws Exception;

    public boolean cancel(Long orderId, Integer canel_reasonId) throws Exception;

    public List<DadaReasons> getReasonsList(Long id);

    public boolean testOrder(Long orderId, Integer type);

}
